//
//  AgainPasswordViewController.swift
//  DianShangWen
//
//  Created by 周文轩 on 15/4/8.
//  Copyright (c) 2015年 &#21608;&#25991;&#36713;. All rights reserved.
//

import UIKit

class AgainPasswordViewController: UIViewController {
    
    @IBOutlet weak var retrievingEmail: UITextField!
    @IBOutlet weak var errorReason: UILabel!

    override func viewDidLoad() {
        super.viewDidLoad()
        errorReason.text = ""
        // Do any additional setup after loading the view.
    }
    
    @IBAction func AgainPassworking() {
        let serverRequest: () = ServerRequest.ServerRequest("requestStayle: system.authentication.pwdretrieve", requestStayle: ".get", params: ["email":retrievingEmail.text], tag: 10) { (dataDictionary) -> Void in
            self.errorReason.text = dataDictionary.objectForKey("string") as? String
        }
    }
    
    @IBAction func backLoginView() {
        self.navigationController?.popToRootViewControllerAnimated(true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
